const system = {
  // 系统编码
  code: process.env.VUE_APP_SYSTEM_CODE
}

// 字典
const dic = {
  token: 'Ingot-Cloud-Auth-Token'
}

// 公共域名
// const BASIC_URL = "https://gdpage.cfbond.com/goldeyeswebapp3.0/#/" // 正式环境
// const BASIC_URL = "http://101.200.59.101/goldeyeswebapp3.0/#/"  // 测试环境
const BASIC_URL = "http://dev.cfbond.com/goldeyeswebapp3.0/#/"  // 开发环境 http://47.104.240.208  http://dev.cfbond.com
const BASIC_API = "https://geapi.cfbond.com/"
const BASIC_PDF = "https://gdpage.cfbond.com/pdf/"

const requestCode = {
  SUCCESS: 0,
  // 10010004:Token 过期了;
  TOKEN_EXPIRE: 1120
}

const config = {
  key_prefix: 'Ingot-Cloud-',
  domain: process.env.VUE_APP_COOKIE_DOMAIN
}

const enums = {
  PAGE: {
    ID: 'id',
    VEHICLE_ID: 'vehicle_id',
    LOAN_ID: 'loan_info_id',
    VIN: 'vin',
    USER_INFO:'userInfo'
  },
  USER: {
    LOGIN_NAME: 'Login-Name',
    REMEMBER_ME: 'Remember-Me',
    AUTH_TOKEN: 'Auth-Token',
    REFRESH_TOKEN: 'Refresh-Token',
    REDIRECT_URI: 'Redirect-Uri',
    BASIC_TOKEN: 'Basic-Token'
  }
}

// const token = {
//   // basic token
//   // basic: process.env.VUE_APP_WEB_BASIC_TOKEN
//   basic: 'Y20td2ViLXN0YWZmLW1vYmlsZTpLaGRZYzFKUk13WTZ5L0R1T1RrOEdRUTU4ZUlSdjl1VWRvZU5rYXNydWJZPQ=='
// }
export {
  // token,
  config,
  enums,
  system,
  dic,
  requestCode,
  BASIC_URL,
  BASIC_API,
  BASIC_PDF
}
